package com.acme.bankapp.domain.bank;

public class SavingAccount extends AbstractAccount{


	public SavingAccount(double balance) {
		this.balance = balance;
	}


	public boolean withdraw(double x) {

		if (this.balance >= x) {
			this.balance -= x;
			return true;
		}
		else 
			return false;
	}



	public double maximumAmountToWithdraw() {

		return this.balance;
	}


}